package com.ssy.lingxi.pay.model.assetAccount;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 支付宝支付附加数据(用于回调检验数据)
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/3
 */
public class AliPayAttachInfo {
    private static final long serialVersionUID = -6219591465942883987L;

    /**
     * 支付方式: 1-平台支付; 2-会员支付
     */
    @JsonProperty("p")
    private Integer payType;

    /**
     * 会员id
     */
    @JsonProperty("m")
    private Long memberId;

    /**
     * 会员角色id
     */
    @JsonProperty("r")
    private Long memberRoleId;

    /**
     * 服务类型: ServiceTypeEnum枚举类
     */
    @JsonProperty("s")
    private String serviceType;

    /**
     * 附加数据
     */
    @JsonProperty("a")
    private String attach;

    /**
     * 随机字符串
     */
    @JsonProperty("n")
    private String nonce;

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberRoleId() {
        return memberRoleId;
    }

    public void setMemberRoleId(Long memberRoleId) {
        this.memberRoleId = memberRoleId;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getNonce() {
        return nonce;
    }

    public void setNonce(String nonce) {
        this.nonce = nonce;
    }
}
